Skip to content

Add optional header support to seed helper function#340

Open
aammett wants to merge 2 commits into
dbt-labs:mainfrom
aammett:feat/add_seed_header_option
Open

Add optional header support to seed helper function#340
aammett wants to merge 2 commits into
dbt-labs:mainfrom
aammett:feat/add_seed_header_option

Conversation

@aammett
Copy link
Copy Markdown

@aammett aammett commented Jan 4, 2026

resolves
#341
dbt-labs/dbt-core#11334

Description

If I've configured my seed's column names in a yml file, I don't want to also keep a header row up-to-date in my csv seed file.

seeds:
  - name: my_seed
    columns:
      - name: country_code
        data_type: varchar(2)
      - name: country_name
        data_type: varchar(32)
country_code,country_name
US,United States
CA,Canada
GB,United Kingdom

Instead, I should be able to configure my seed to not need a header row if I've configured my column names in yml already.

seeds:
  - name: my_seed
    config:
      header: false
    columns:
      - name: country_code
        data_type: varchar(2)
      - name: country_name
        data_type: varchar(32)

US,United States
CA,Canada
GB,United Kingdom

Checklist

@aammett aammett requested a review from a team as a code owner January 4, 2026 22:10
@cla-bot cla-bot Bot added the cla:yes label Jan 4, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 4, 2026

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

@aammett aammett changed the title add seed optional header Add optional header support to seed helper function Jan 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant